package com.example.message.http;

import com.example.message.dto.BaseDto;
import com.example.message.dto.BaseResponseDto;
import com.example.message.dto.LoginDto;
import com.example.message.vo.UserVo;

import java.util.List;

import io.reactivex.Flowable;

public class Api {
    /**
     * 登录接口
     *
     * @param vo
     * @return
     */

    public static Flowable<BaseDto<List<LoginDto>>> login(UserVo vo) {
        return RequetRetrofit.getInstance().login(vo);
    }
    /**
     * 注册接口
     *
     * @param vo
     * @return
     */

    public static Flowable<BaseDto<BaseResponseDto>> newMember(UserVo vo) {
        return RequetRetrofit.getInstance().newMember(vo);
    }
}
